#include #include #include #include using namespace std; void information(); void B_type(); void G_member(); class donor { private: char D_Name[20],sex[7],zone[15],woreda[15],city[15],B_group[10],R_no[20],P_no[20]; char S_Name[20],S_sex[7],S_zone[15],S_woreda[15],S_city[12],S_B_group[15],S_R_no[20],Date[20]; int Age,U_R,n,S_Age; public: void D_info() { cout<<"\n\t\tDONOR Registration NUMBER:"; cin>>R_no; cout<<"\n\t\tDONOR NAME:"; cin>>D_Name; cout<<"\n\t\tDONOR AGE: "; cin>>Age; cout<<"\n\t\tDONOR SEX (M/F) : "; cin>>sex; cout<<"\n\t\tZONE: "; cin>>zone; cout<<"\n\t\tWOREDA:"; cin>>woreda; cout<<"\n\t\tCITY:"; cin>>city; cout<<"\n\t\tDONOR BLOOD GROUP(A,B,AB,O): "; cin>>B_group; cout<<"\n\t\tPHONE NUMBER:"; cin>>P_no; cout<<"\n\t\tENTER DATE:"; cin>>Date; cout<>S_R_no; cout<<"\n\t\tEnter Seeker name:"; cin>>S_Name; cout<<"\n\t\tEnter Seeker age:"; cin>>S_Age; cout<<"\n\t\tEnter blood group(A,B,AB,O):"; cin>>S_B_group; cout<<"\n\t\tEnter Seeker zone :"; cin>>S_zone; cout<<"\n\t\tEnter Seeker woreda :"; cin>>S_woreda; cout<<"\n\t\tEnter Seeker city :"; cin>>S_city; cout<<"\n\t\tPHONE NUMBER :"; cin>>P_no; cout<<"\n\t\tENTER DATE :"; cin>>Date; } void D_display() { cout<<"\tdonor name :"<=18) { cout<<"\tdonor age :"<>R_no1; if(strcmp(R_no,R_no1)==0) { cout<<"the customer found"<>SR_no; if(strcmp(S_R_no,SR_no)==0) { cout<<"the customer found"<>p; if(strcmp(S_R_no,p)==0) { cout<<"this is your information\n"<>s; if(strcmp(B_group,s)==0) { cout<<"your blood is available"<>n; if(n!=6) { if(n==1) { B_type(); getch(); cout<<"\nDo you want to exit Y/N\n"; cin>>e; if(e=='N') { goto Start; } else { goto s; } } switch(n) { case 2: { cout<<"Which information you want to enter\n"; S: cout<<"\n\t\t\t!!!!!!!1.DONOR DETAIL ENTER (D)\n"; cout<<"\n\t\t\t!!!!!!!2.SEEKER DETAIL ENTER (S)\n"; cin>>t; cout<<"\n\n How many customer details would u like to enter : " ; cin>>f; for(int u=0;u>e; if(e=='N') { goto Start; } else { goto s; } } break; case 3: f: { cout<<"\n\t\t\t=========1.FOR DONOR INFORMATION ENTER (D)================\n"; cout<<"\n\t\t\t=========2.FOR SEEKER INFORMATION ENTER (S)=================\n"; cin>>t; cout<<"\n\n How many customer details would u like to see : " ; cin>>f; for(int u=0;u>e; if(e=='N') { goto Start; } else { goto s; } break; } case 4: { cout<<"\n\n How many customer details would u like to see : " ; cin>>f; for(int u=0;u>e; if(e=='N') { goto Start; } else { goto s; } break; case 5: { G_member(); } getch(); cout<<"\nDo you want to exist Y/N\n"; cin>>e; if(e=='N') { goto Start; } else { goto s; } break; default: { cout<<"WRONG CHOICE"<